package python

const PROJECT_CAN_NOT_FIND = 100
const ACCESS_TOKEN_ERR = 101

var ERRNO_MAP map[int]string = map[int]string{
	PROJECT_CAN_NOT_FIND: "项目名称无效",
	ACCESS_TOKEN_ERR:     "没有权限访问",
}

func GetErrMsg(errno int) map[string]interface{} {
	return map[string]interface{}{
		"errno": errno,
		"msg":   ERRNO_MAP[errno],
	}
}
